@import '~styles/colors.less';

.root {
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  padding: 6px 8px;
  vertical-align: top;
  border-radius: 3px;
  z-index: 1;

  height: 30px;
  font-size: 13px;
  color: @chromeTextColor;
  border: 1px solid transparent;

  :global {
    i {
      content: "";
      width: 10px;
      line-height: 18px;
      position: absolute;
      right: 8px;
      text-align: center;
    }
  }

  &:hover, &.opened {
    background-color: @chromeBackgroundColor;
    border: 1px solid @primary;
  }

  &.opened {
    border-radius: 3px 3px 0 0;
  }
}

.info {
  position: relative;
  display: inline-block;
  max-width: 125px;
  line-height: 18px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.collapsable {
  border: 1px solid @primary;
  background-color: @chromeBackgroundColor;
  border-radius: 0 0 3px 3px;
  height: 200px;
}

.collapsableContent {
  padding: 1px;
}

.entry {
  font-size: 12px;
  padding: 7px 7px;
  color: @chromeTextColor;
  display: block;
  width: 100%;
  text-decoration: none;
  border-top: 1px solid @chromeBordersColor;
  text-align: left;

  &:first-child {
    border-top: 0;
  }
  &:hover{
    color: @primary;
    background-color: @chromeBackgroundActive;
  }
}
